import Vue from 'vue'

Vue.directive('errorImg', {
  inserted (el, binding, vnode) {
    // console.log(vnode)
    el.onerror = function () {
      el.src = require('../assets/common/img.jpeg')
    }
  }
})
